From 212c3adc8a584e6517a2816fc6683688d5ac5d7a Mon Sep 17 00:00:00 2001 From: Martin Kagamino Lehoux Date: Tue, 8 Sep 2026 13:44:59 +0200 Subject: Project health chart on LayerChart Project page gets a Sante chart: daily mean of per-routine health via computeProjectHealthSeries, ending at the current health score. Both charts share a HealthChart component built on LayerChart's AreaChart (time x-axis, fixed 0-100 y-axis, completion dots). --- .../[projectId]/routine/[routineId]/+page.svelte | 87 ++-------------------- 1 file changed, 8 insertions(+), 79 deletions(-) (limited to 'src/routes/projects/[projectId]/routine/[routineId]/+page.svelte') diff --git a/src/routes/projects/[projectId]/routine/[routineId]/+page.svelte b/src/routes/projects/[projectId]/routine/[routineId]/+page.svelte index bcdca79..ab2644d 100644 --- a/src/routes/projects/[projectId]/routine/[routineId]/+page.svelte +++ b/src/routes/projects/[projectId]/routine/[routineId]/+page.svelte @@ -1,5 +1,6 @@
@@ -159,28 +130,12 @@

Santé

- {#if geometry} - - {#each geometry.grid as line (line.label)} - - {/each} - - {#each geometry.markers as m (m.x)} - - {/each} - + + {#if series.length >= 2} - {:else} -

Pas encore assez d'historique pour tracer la courbe.

{/if}
@@ -280,30 +233,6 @@ align-items: stretch; } - .health-chart { - width: 100%; - height: 9rem; - } - - .chart-grid { - stroke: var(--border); - stroke-width: 1; - stroke-dasharray: 2 4; - } - - .chart-line { - stroke: var(--accent); - stroke-width: 2; - stroke-linejoin: round; - stroke-linecap: round; - } - - .chart-marker { - fill: var(--success); - stroke: var(--white); - stroke-width: 1.5; - } - .chart-footer { display: flex; align-items: center; -- cgit v1.3